package com.example.gateway.designPattern.proxy;

/**
 * @ClassName: BuyHouseProxy
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/31
 */

public class BuyHouseProxy implements  BuyHouse {
    private  BuyHouse buyHouse;

    public BuyHouseProxy(BuyHouse buyHouse) {
        this.buyHouse = buyHouse;
    }

    @Override
    public void buyHouse() {
        System.out.println("buyHouse---before---");
        buyHouse.buyHouse();
        System.out.println("buyHouse---after----");
    }

    @Override
    public void sellHouse() {

    }
}
